package org.com.ashen.service.dao;

import org.apache.commons.lang3.StringUtils;
import org.com.ashen.dal.dataobject.Users;
import org.com.ashen.dal.mapper.UsersMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("usersDao")
public class UsersDao {
	@Resource
    private UsersMapper usersMapper;
	
	public Users getUserByLoginId(String userId) {
        if (StringUtils.isBlank(userId)) {
            return null;
        }
        return usersMapper.selectByPrimaryKey(userId);
    }
}
